package org.spring.springboot.app.agent.balancelog.dao;

import org.apache.ibatis.annotations.Param;
import org.spring.springboot.app.agent.balancelog.domain.po.SysOfficeBalanceLogPO;
import org.spring.springboot.app.agent.balancelog.domain.vo.SysOfficeBalanceLogSearchVO;

import java.util.List;

public interface SysOfficeBalanceLogDao {
    int deleteByPrimaryKey(String id);

    int insert(SysOfficeBalanceLogPO record);

    int insertSelective(SysOfficeBalanceLogPO record);

    SysOfficeBalanceLogPO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysOfficeBalanceLogPO record);

    int updateByPrimaryKey(SysOfficeBalanceLogPO record);

    List<SysOfficeBalanceLogPO> findPage(SysOfficeBalanceLogSearchVO searchvo,@Param("pageNum") int pageNum, @Param("pageSize") int pageSize,String types);

    String yesterdaySum(String officeId);  //昨天的

    String lastweekSum(String officeId);  //上周的

    String lastmonthSum(String officeId);  //上月的

    List<SysOfficeBalanceLogPO> findRecen(String officeId);
}